package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.GoodVo;
import com.atguigu.jxc.entity.SaleDataVo;
import com.atguigu.jxc.entity.SaleList;
import com.atguigu.jxc.entity.SaleListGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaleListGoodsDao {
    // 支付结算（修改销售单付款状态）
    void updateState(Integer saleListId);

    List<GoodVo> count(@Param("sTime") String sTime,@Param("eTime") String eTime, @Param("goodsTypeId") Integer goodsTypeId, @Param("codeOrName") String codeOrName);

    List<SaleDataVo> getSaleDataByDay(@Param("sTime") String sTime, @Param("eTime") String eTime);


    List<SaleDataVo> getPurchaseDataByDay(String sTime, String eTime);

    List<SaleDataVo> getSaleDataByMonth(String sTime, String eTime);

    List<SaleDataVo> getPurchaseDataByMonth(String sTime, String eTime);

    List<SaleList> getsaleList(String saleNumber, Integer customerId, Integer state, @Param("sTime") String sTime, @Param("eTime") String eTime);

    List<SaleListGoods> getSaleListGoodsBySaleListId(Integer saleListId);

    void deleteBySaleListId(Integer saleListId);

    void deleteSaleListGoodsBySaleListId(Integer saleListId);

    void saveSaleList(SaleList saleList);

    void saveSaleListGoods(SaleListGoods saleListGoods);
}
